package cn.good.yan.conf.enumc;

import com.baomidou.mybatisplus.annotation.EnumValue;
import lombok.Getter;

/**
 * 枚举
 * @author shengren.yan
 * @create 2022-09-10
 */
@Getter
public enum SexEnum {

    ONE(0, "未付款"),
    TWO(1, "已付款");

    @EnumValue // 将注解所标识的属性的值存储到数据库中
    private int index;
    private String name;

    SexEnum(Integer index, String name) {
        this.index = index;
        this.name = name;
    }

}
